package com.ccsoft.leetcode.model;

public class Operation {
    private OperationValue value;
    private int priority;

    private static final int low = 1;
    private static final int heigh = 2;

    Operation(OperationValue value,int priority){
        this.value = value;
        this.priority = priority;
    }

    static Operation plus,minus,multiply,divide;

    static {
        plus = new Operation(OperationValue.plus,Operation.low);
        minus = new Operation(OperationValue.minus,Operation.low);
        multiply = new Operation(OperationValue.multiply,Operation.heigh);
        divide = new Operation(OperationValue.divide,Operation.heigh);
    }
}
